/*****************************************************************************
 * vfs_fat32.c
 *
 * Copyright (C) 2020 Jeasonvor 1101627719@qq.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 ****************************************************************************/

/*****************************************************************************
 * Included Files
 ****************************************************************************/
#include "plum_api.h"
/*****************************************************************************
 * Trace Definitions
 ****************************************************************************/
#define LOG_RUN_LEVEL LOG_LEVEL_DEBUG
#define LOG_MODULE    "vfs.fat32"
#include "thirdparty/log/log.h"
/*****************************************************************************
 * Pre-processor Definitions
 ****************************************************************************/

/*****************************************************************************
 * Private Types
 ****************************************************************************/

/*****************************************************************************
 * Private Function Prototypes
 ****************************************************************************/

/*****************************************************************************
 * Private Data
 ****************************************************************************/

/*****************************************************************************
 * Public Data
 ****************************************************************************/

/*****************************************************************************
 * Private Functions
 ****************************************************************************/

/*****************************************************************************
 * Public Functions
 ****************************************************************************/
plum_s32 plum_cal_vfs_open(plum_s8 *path, plum_u32 mode)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {
        if (!path) {
            rc = PLUM_ECODE_INVALID;
            LOG_E("this path is invalid");
            break;
        }

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_close(plum_u32 fd)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_read(plum_u32 fd, plum_u8 *rData, plum_u32 len)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_write(plum_u32 fd, plum_u8 *wData, plum_u32 len)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_seek(plum_u32 fd, plum_u32 offset,
                           plum_vfs_seek_whence_t whence)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_offset(plum_u32 fd)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}

plum_s32 plum_cal_vfs_sync(plum_u32 fd)
{
    plum_s32 rc = PLUM_ECODE_OK;

    do {

    } while (0);

    return (rc);
}
/****************************************************************************/
/*                                                                          */
/*  End of file.                                                            */
/*                                                                          */
/****************************************************************************/
